package com.checkin.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.checkin.model.Person;
import com.checkin.repository.PersonRepository;

@Service("personService")
public class PersonServiceImpl implements PersonService {

	@Autowired
	private PersonRepository pr;
	
	@Transactional
	public Person save(Person person) {
		System.out.println("Save Person");
		
		return pr.save(person);

	}

	public List<Person> listAll() {
		// TODO Auto-generated method stub
		return null;
	}

}
